<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset={-$html.charset-}">
<title>{-$html.title-}</title>
<link href="./src/img/_login.css" rel="stylesheet" media="all" rev="stylesheet" />
<script type="text/javascript" src="../_res/js/mootools.js" ></script>
</head>
<body>
<form method="post" action="{-$html.url-}&act=ok" >
<div id="login"><div id="_login"><div id="_login_"><div class="{-$_GET.fun-}">

	<div>
		<span>用户名:</span>
		<input class="txt" name="_ad_name"/>
	</div>
	<div>
		<span>密　码:</span>
		<input class="txt" name="_ad_pwd" type="password"/>
	</div>
	<div>
		<input class="submit" type="submit" value="登录"/>
		<input class="submit" type="reset" value="取消"/>
	</div>

</div></div></div></div>

<input type='hidden' name='jurl' value='{-$_ENV.referer-}' />

</form>



<script type="text/javascript">
var isp=false;
$$('form')[0].addEvent('submit', function(evt){
	if(isp) {evt.stop();alert('表单已经递交!');return ;}
	var e = this.getElement("input[name=_ad_name]");
	if(!e.value.match(/^([^\x00-\xff]|\w){1,15}$/)){
		evt.stop();alert('用户名只不能为空,并且不能包含特殊字符!'); e.select(); e.focus(); return ;
	}
	var e = this.getElement("input[name=_ad_pwd]");
	if(!e.value.match(/^\w{4,12}$/)){
		evt.stop();alert('密码只不能少于4个字符,并且不能包含特殊字符!');	e.select();e.focus(); return ;
	}
	isp = true;
});
</script>

</body>
</html>